<?
//获取nav-itemed，控制侧边栏展开

if($_REQUEST['nav-itemed']=="index")
{$navi_index="layui-this";}

if($_REQUEST['nav-itemed']=="config")
{$navi_config="layui-this";}

if($_REQUEST['nav-itemed']=="user")
{$navi_user="layui-this";}


?>



<!---->
<!--<div style="width:60px; height: 60px; background-color: #ff9900; position: absolute; z-index: 999999">这个是留给logo做的块-->
<!--</div>-->



<ul class="layui-nav"  >






<!--<div class="search-set-content">-->
<!--            <form id="search_form" method="post" action="--><?//echo $domain?><!--/controlbase/search/detail-list.php" name="search_form">-->
<!--                <input name="keywords" type="text" class="search-input">-->
<!--                <input name="search-btn" type="submit" value="" class="search-sub">-->
<!--                <input name="search-plate" type="hidden" value="--><?//echo $system_part?><!--">-->
<!--            </form>-->
<!--        </div>-->




  <li class="layui-nav-item <?echo $navi_index ?>" ><a href="<?echo $domain?>/controlbase/index.php?nav-itemed=index"><i class="layui-icon">&#xe60f;</i>系统首页</a></li>
<!--  <li class="layui-nav-item  --><?//echo $navi_config ?><!--"><a href="--><?//echo $domain?><!--/controlbase/config.php?nav-itemed=config"><i class="layui-icon">&#xe614;</i>系统设置</a></li> -->
<!--  <li class="layui-nav-item">-->
<!--    <a href="javascript:;"><i class="layui-icon">&#xe607;</i>帮助中心</a>-->
<!--    <dl class="layui-nav-child"> <!-- 二级菜单 -->-->
<!--      <dd><a href="">常见问题</a></dd>-->
<!--      <dd><a href="">在线客服</a></dd>-->
<!--      <dd><a href="">信息反馈</a></dd>-->
<!--    </dl>-->
<!--  </li>-->










<?
$userdepartment=select_one_line_all_items($table_Prefix."department","nid='".$_SESSION['departmentid']."'");
?>



	<li class="layui-nav-item <?echo $navi_user ?>"><a href="javascript:;"><i class="layui-icon">&#xe612;</i><?echo $_SESSION['username'];?> [ <?echo $userdepartment['name'] ?> ] </a>
		<dl class="layui-nav-child"> <!-- 二级菜单 -->
      <dd><a href="<?echo $domain?>/controlbase/user/detail-reset-pw.php?nav-itemed=user&nid=<?echo $_SESSION['nid'];?>"> 用户中心</a></dd>
      <dd><a href="<? echo $domain ?>/controlbase/loginout.php"> 注销登录</a></dd> 
    </dl>
	</li>


</ul>

